import request from '@/utils/request'

// 查询用户列表-分页版本
export function queryPlatformUserList(data) {
  return request({
    url: `/platform/user/list?page=${data.pageNum}`,
    method: 'post',
    data: data
  })
}

// 查用户消费明细
export function queryPlatformAccountList(data) {
  return request({
    url: `/platform/account/list?page=${data.pageNum}`,
    method: 'post',
    data: data
  })
}

// 查用户充值明细
export function queryPlatformRechargeList(data) {
  return request({
    url: `/platform/recharge/list?page=${data.pageNum}`,
    method: 'post',
    data: data
  })
}

// 查用户看剧记录
export function queryPlatformViewedList(data) {
  return request({
    url: `/platform/viewed/list?page=${data.pageNum}`,
    method: 'post',
    data: data
  })
}

// 封号
export function banUser(data) {
  return request({
    url: '/platform/ban/user',
    method: 'post',
    data: data
  })
}

// 解封
export function unbanUser(data) {
  return request({
    url: '/platform/unban/user',
    method: 'post',
    data: data
  })
}

// 充值记录-订单状态
export const STATUS_RECHARGE_DETAIL = {
  0: '未支付',
  1: '已支付'
}
